package com.photonpay.api.request;

import cn.hutool.http.Method;
import com.photonpay.api.response.GetCardBinResponse;
import lombok.Builder;
import lombok.Data;

/**
 * 获取卡bin
 * @author ：lo-
 * @date ：Created in 2023/11/22 14:40
 */
@Data
@Builder
public class GetCardBinRequest extends BaseRequest<GetCardBinResponse> {

    /**
     * share 或 recharge 可为空。如为空，则查询结果将显示所有类型的卡。
     */
    private String cardType;

    /**
     * "VISA" "MasterCard" "Discover"
     * 卡组织
     */
    private String cardScheme;

    /**
     * "USD" "EUR" "GBP"
     * 卡币种
     */
    private String cardCurrency;

    @Override
    public Class<GetCardBinResponse> getResponseClass() {
        return GetCardBinResponse.class;
    }

    @Override
    public String getBasePath() {
        return "/vcc/open/v2/getCardBin";
    }

    @Override
    public Method getMethod() {
        return Method.GET;
    }

    @Override
    public boolean isSign() {
        return false;
    }

}
